package br.ita.comp.ces22.quiz.domain;

import br.ita.comp.ces22.quiz.email.EmailManager;

public class Observer {
	private static EmailManager emailManager = null;
	
	public void update(String toEmail, String errorMessage){
		if (emailManager == null) {
			emailManager = new EmailManager();
		} else {
			emailManager.send(toEmail, errorMessage);
		}
	}
}
